Enterprise Version
inspired by the reference